home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Ubuntu 9.10 PL
/
karmelkowy-koliberek-desktop-9.10-i386-PL.iso
/
casper
/
filesystem.squashfs
/
bin
/
preseed_command
< prev
next >
Wrap
Text File
|
2008-10-27
|
468b
|
24 lines
#!/bin/sh -e
# Run a preseeded command.
ct=$1
. /usr/share/debconf/confmodule
log () {
logger -t preseed "$@"
}
db_get "$ct"
command="$RET"
if [ "$command" != "" ]; then
log "running preseed command $ct: $command"
code=0
log-output sh -c "$command" || code=$?
if [ "$code" != 0 ]; then
db_subst preseed/command_failed COMMAND "$command"
db_subst preseed/command_failed CODE "$code"
db_input critical preseed/command_failed || true
db_go || true
fi
fi